package com.htl.exampro.question.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 题型代码表
 * </p>
 *
 * @author hehehe
 * @since 2025-05-25
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "QuestionTypeVO对象", description = "题型代码表")
public class QuestionTypeVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 题型ID
     */
    @Schema(description = "题型ID")
    private Integer typeId;

    /**
     * 题型名称（如：单选、多选等）
     */
    @NotBlank
    @Schema(description = "题型名称（如：单选、多选等）")
    private String typeName;

    /**
     * 创建人ID
     */
    @Schema(description = "创建人ID")
    private String createdPerson;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;

    /**
     * 修改人ID
     */
    @Schema(description = "修改人ID")
    private String updatedPerson;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;
}
